import Mock from "mockjs"
import floors from "./json/floor.json"
Mock.mock("/mock/banners",{
  code:200,
  "data|4-7":[
    {
      "id|+1":0,
      url:"@image( '721x455', '@color', '#000000', 'jpg', '@word' )"
    }
  ]
}) 

Mock.mock("/mock/floors",{
  code:200,
  "data|2":floors
}) 

/*
    获取排序信息
    排序种类: 1: 综合,2: 价格
    升降序的标识: asc: 升序,desc: 降序
*/
Mock.mock("/mock/sort",{
  code:200,
  data:[
      {id:0,type:1,msg:"综合"},
      {id:1,type:2,msg:"价格"},
      {id:2,type:3,msg:"距离"},
  ]
})